<div class='span12'>
	<!-- HEADER -->
	<div class='row-fluid'>
		<div class='span12'>
			<div class='page-header'>

				<h1 class="span8">
					<i class='icon-bullhorn'></i> <span>PLAN</span>
				</h1>

			</div>
		</div>
	</div>

	<!-- END OF HEADER -->


	<div class='row-fluid'>
		<div class="span12 box bordered-box blue-border"
			style="margin-bottom: 0;">
			<div class="box-header blue-background">
				<div class="title">

					<?= $post->title;?>
				</div>
				<div class="actions">
					<a href="#" class="btn box-remove btn-mini btn-link"><i
						class="icon-remove"></i> </a> <a href="#"
						class="btn box-collapse btn-mini btn-link"><i></i> </a>
				</div>
			</div>
			<div class="box-content">

                <p class="text-dark-orange">
                    <?=
                    (Session::get('message') ? Session::get('message') : '');
                    ?>
                </p>


                <form class="form-horizontal" method="post" action="<?= URL::current();?>">

                    <div class="control-group">
                        <label class="control-label"><strong>Existing Plan :</strong>
                        </label>
                        <div class="controls">
                            <?= $existing_plan;?>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label"><strong>Plan :</strong>
                        </label>
                        <div class="controls">

                            <input type="hidden" value="<?= $post->id;?>" name="post_id">

                            <select class="form-control" name="plan">
                                <option value="" selected="selected">-Select Plan-</option>
                            <?php foreach ($plans as $plan): ?>
                                <option value="<?= $plan->id;?>" ><?= $plan->name;?></option>
                            <?php endforeach; ?>
                            </select>
                        </div>
                    </div>

                    <div class="form-actions">
                        <button class="btn btn-primary" type="submit" onclick="return confirm('Are you sure ?');">
                            <i class="icon-save"></i>
                            Save
                        </button>
                        <button class="btn" type="submit" onclick="return confirm('Are you sure ?');">Cancel</button>
                    </div>
                </form>
			</div>
		</div>
	</div>


	<!-- END OF CONTENT -->
</div>



